<%-- 
    Document   : leftClient
    Created on : 28/05/2010, 01:55:09 PM
    Author     : Damc
--%>
<%
HttpSession sesion = request.getSession();
if(sesion.getAttribute("usuario")==null){
    response.sendRedirect("../index.jsp");
}
String username =(String)sesion.getAttribute("username");
String message = (String)request.getAttribute("message");
if (message == null){message = "";}
%>
<div id="left" class="clear-block">
        <!parte 1>
        <div align="left">
            <h2 align="center">Men&uacute; Principal</h2>
            <p align="center">Bienvenido: <b><%=username%></b> <img src="../archivos/icons/users.png" width="16" height="16"></p>
            <ul>
                <li><form name="home" method="post" action="navegacionClient">
                    <input name="target" type="hidden" value="home">
                    <a onclick="document.home.submit();" title="Volver al inicio" class="leftLinks">Inicio</a></form></li>
                <li><form name="verplanes" method="post" action="navegacionClient">
                    <input type="hidden" name="request" value="planes">
                    <a onclick="document.verplanes.submit();" class="leftLinks">Ver planes</a></form></li>
                <li><form name="carroC" method="post" action="navegacionClient">
                    <input type="hidden" name="request" value="carro">
                    <a onclick="document.carroC.submit();" class="leftLinks">Ver Carro de compra</a></form></li>
                <li><form name="edicion1" method="post" action="navegacionClient">
                    <input type="hidden" name="request" value="editar">
                    <a onclick="document.edicion1.submit();" class="leftLinks">Editar perfil</a></form></li>
                <li><form name="sesion" method="post" action="sessionServlet">
                    <input type="hidden" name="action" value="signout">
                    <a onclick="document.sesion.submit();" class="leftLinks">Cerrar sesi&oacute;n</a></form></li>
            </ul>
        </div>
        <hr>
      <!parte 2>
      <div align="left" >
          <h2 align="center">Men&uacute; B&uacute;squeda</h2>
          <table>
              <tr><td><img src="../archivos/icons/hotel.png" alt="Hoteles" width="20" height="20"></td>
                  <td><form name="hotels" method="post" action="navigationServlet">
                    <input name="target" type="hidden" value="searchHotels">
                    <a style="cursor:pointer" onclick="document.hotels.submit();" title="Busca los mejores hoteles" class="leftLinks">Hoteles</a></form>
                  </td></tr>
              <tr><td><img src="../archivos/icons/restaurant.png" alt="Restaurantes" width="20" height="20"></td>
                  <td><form name="restaurants" method="post" action="navigationServlet">
                    <input name="target" type="hidden" value="searchRestaurants">
                    <a style="cursor:pointer" onclick="document.restaurants.submit();" title="Busca los mejores restaurantes" class="leftLinks">Restaurantes</a></form>
                </td></tr>
              <tr><td><img src="../archivos/icons/theater.png" alt="Teatros" width="20" height="20"></td>
                  <td><form name="theaters" method="post" action="navigationServlet">
                    <input name="target" type="hidden" value="searchTheaters">
                    <a style="cursor:pointer" onclick="document.theaters.submit();" title="Busca las mejores obras en los mejores teatros" class="leftLinks">Teatro</a></form>
                </td></tr>
              <tr><td><img src="../archivos/icons/flight.png" alt="Vuelos" width="20" height="20"></td>
                  <td><form name="flights" method="post" action="navigationServlet">
                <input name="target" type="hidden" value="searchFlights">
                <a style="cursor:pointer" onclick="document.flights.submit();" title="Busca los vuelos mas economicos" class="leftLinks">Vuelos</a></form>
              </td></tr>
           </table>
        </div>       
</div>